<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>排行榜</title>
    <link rel="stylesheet" href="assets/lib/layui/css/layui.css">
    <link rel="stylesheet" href="assets/css/base.css">
    <link rel="stylesheet" href="assets/css/common.css">
    <link rel="stylesheet" href="assets/css/mList.css">
</head>

<body>
    <div class="g-bd">
        <!-- 左侧歌单模块 -->
        <div class="g-sd3">
            <div class="n-minelst">
                <h2 class="f-f1">云音乐特色榜</h2>
                <ul class="f-cb"></ul>
            </div>
        </div>
        <!-- 右侧歌单评论模块 -->
        <div class="g-mn3">
            <div class="g-wrap">
                <div class="m-info">
                </div>
            </div>
            <!-- 歌曲列表 -->
            <div class="g-wrap2">

            </div>
            <!-- 评论 -->
            <div class="g-wrap3">

            </div>
        </div>
    </div>

    <!-- 榜单信息 -->
    <script type="text/html" id="toplist-id">
        {{each list}}
        <li data-detail="{{$value.id}}">
            <div class="item">
                <div class="head">
                    <img src="{{$value.coverImgUrl}}" alt="">
                </div>
                <div class="cntwrap">
                    <div class="cnt">
                        <a href="javascript:;" class="s-fc">{{$value.name}}</a>
                    </div>
                    <div class="rb">
                        <a href="javascript:;" class="s-fc">{{$value.updateFrequency}}</a>
                    </div>
                </div>
            </div>
        </li>
        {{/each}}
    </script>

    <!-- 对应各榜单详细内容 -->
    <script type="text/html" id="detail">
        <div class="cover">
            <div class="msk">
                <img src="{{coverImgUrl}}" alt="">
            </div>
        </div>
        <div class="cnt">
            <div class="hd">
                <h3>{{name}}</h3>
            </div>
            <div class="user">
                <i></i>
                <span class="s-fc">最近更新:</span>
                <span class="s-fc">{{createTime | getTime}}</span>
                <span class="s-fc">（每天更新）</span>
            </div>
            <div class="btns">
                <a href="javascript:;" class="u-btn-applay">
                    <span>播放</span>
                </a>
                <a href="javascript:;" class="u-btn-add"></a>
                <a href="javascript:;" class="u-btn-fav"><span>{{subscribedCount}}</span></a>
                <a href="javascript:;" class="u-btn-share"><span>{{shareCount}}</span></a>
                <a href="javascript:;" class="u-btn-dl"><span>下载</span></a>
                <a href="javascript:;" class="u-btn-commt"><span>{{commentCount}}</span></a>
            </div>
        </div>
    </script>

    <!-- 歌曲列表 -->
    <script type="text/html" id="playlist">
        <div class="n-hot">
            <h3 class="rmd-title">
                歌曲列表
                <span class="s-fc">{{playlist.tracks.length}}首歌</span>
            </h3>
            <div class="m-more">
                <span class="s-fc">播放：</span>
                <span class="s-fc2">{{playlist.playCount}}</span>
                <span class="s-fc">次</span>
            </div>
        </div>
        <!-- 歌曲列表 -->
        <div class="song-list-pre">
            <table class="layui-table">
                <colgroup>
                    <col width="77">
                    <col>
                    <col width="120">
                    <col width="175">
                </colgroup>
                <thead>
                    <tr>
                        <th></th>
                        <th>标题</th>
                        <th>时长</th>
                        <th>歌手</th>
                    </tr>
                </thead>
                <tbody>
                    {{each playlist.tracks}}
                    <tr>
                        <td>
                            <div class="hd">
                                <span>{{$index+1}}</span>
                                <div class="rk">
                                    <span></span>
                                </div>
                            </div>
                        </td>
                        <td>
                            <div class="tt">
                                <a href="javascript:;" class="rpic">
                                    <img src="{{$value.al.picUrl}}" alt="">
                                </a>
                                <span class="ply" id="ply" data-type="{{$value}}"></span>
                                <span class="txt">
                                <a href="lyrics_page.html" data-type="{{$value}}" target="fm" id="btn-lyric">{{$value.name}}</a>
                                </span>
                                <span class="mv"></span>
                            </div>
                        </td>
                        <td>
                            {{$value.dt | Duration}}
                            <div class="opt">
                                <a href="javascript:;" class="btn-add"></a>
                                <a href="javascript:;" class="btn-fav"></a>
                                <a href="javascript:;" class="btn-share"></a>
                                <a href="javascript:;" class="btn-dl"></a>
                            </div>
                        </td>
                        <td>{{$value.ar | Singer}}</td>
                    </tr>
                    {{/each}}
                </tbody>
            </table>
        </div>
    </script>

    <!-- 获取歌单评论 -->
    <script type="text/html" id="playlistcomment">
        <!-- 评论区域 -->
        <div class="n-cmt">
            <div class="n-hot">
                <h3 class="rmd-title">
                    评论
                    <span class="s-fc">共{{total}}条评论</span>
                </h3>
            </div>
        </div>
        <div class="m-commtpt">
            <div class="iptarea">
                <div class="head">
                    <img src="assets/images/rebot.jpg" alt="">
                </div>
                <div class="u-txtwrap">
                    <input type="text" name="commt" id="" placeholder="评论">
                </div>
            </div>
            <div class="comms">
                <h3 class="u-hd2">
                    精彩评论
                </h3>
                {{each comments}}
                <div class="itm">
                    <div class="head">
                        <img src="{{$value.user.avatarUrl}}" alt="">
                    </div>
                    <div class="cntwrap">
                        <div class="cnt">
                            <a href="javascript:;" class="s-fc1">{{$value.user.nickname}}</a>:
                            <span>{{$value.content}}</span>
                        </div>
                        <div class="rb">
                            <div class="time">{{$value.time | Time}}</div>
                            <a href="javascript:;">
                                <i></i> （7268）
                            </a>
                            <a href="javascript:;" class="s-fc3">回复</a>
                        </div>
                    </div>
                </div>
                {{/each}}
            </div>
            <!-- 分页功能 -->
            <div class="m-pl-pager">
                <div class="u-page">
                    <a href="javascript:;" class="btn prv-page">上一页</a>
                    <span id="cunt">....</span>
                    <a href="javascript:;" class="btn nxt-page">下一页</a>
                </div>
            </div>
        </div>
    </script>

    <!-- 将歌曲的信息渲染到底部导航栏 -->
    <script type="text/html" id="music-btmbar">
        <div class="p-wrap">
            <div class="words">
                <a href="javascript:;" class="u-name">{{name}}</a>
                <a href="javascript:;" class="n-name">{{ar | Singer}}</a>
            </div>
            <!-- 进度条 -->
            <div class="m-pbar">
                <span class="f-tdn" id="tdn"></span>
                <!-- 进度控制条，跟随歌曲播放 -->
                <div class="bar"></div>
            </div>
        </div>
        <span class="j-time"><i>00:00</i>/{{dt | Duration}}</span>
    </script>

    <script src="assets/lib/jquery.js"></script>
    <script src="assets/lib/axios.js"></script>
    <script src="assets/lib/template-web.js"></script>
    <script src="assets/js/base.js"></script>
    <script src="assets/js/mList.js"></script>
</body>

</html>